import { computed } from "vue";

// const context = require("../config-provider/context.js");
export const useSize = (size, { defaultValue = "medium" } = {}) => {
  //   const configProviderCtx = inject(context.configProviderInjectionKey, void 0);
  const mergedSize = computed(() => {
    let _a, _b;
    return (_b =
      (_a = size == null ? void 0 : size.value) != null ? _a : void 0) != null
      ? _b
      : defaultValue;
  });
  return {
    mergedSize,
  };
};
